package com.learn.controller;

import com.learn.properties.AppProperties;
import com.learn.properties.AppPropertiesYml;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConfigController {
    @Autowired
    private AppPropertiesYml appPropertiesYml;
    
    @Autowired
    private AppProperties appProperties;
    
    @GetMapping("/config")
    public String config() {
        System.out.println(appPropertiesYml);
        
        System.out.println(appProperties);
        
        return "config";
    }
}
